<table border=0 cellpadding=1 cellspacing=0 width=100% align=center>
    <tr bgcolor="#E6E6E6" height="24">		
        <td class="gridTitle" align="left" width="5%">&nbsp;<b>#ID</b></td>
        <td class="gridTitle" align="left" width="20%">&nbsp;<b>Photo title</b></td>
        <td class="gridTitle" align="left" width="40%">&nbsp;<b>Brief description</b></td>
        <td class="gridTitle" align="left" width="10%">&nbsp;<b>Thumbnail</b></td>
        <td class="gridTitle" align="center" width="5%">&nbsp;<b>Seq</b></td>	      
        <td class="gridTitle" align="center" width="5%">&nbsp;<b>Show</b></td>	      
        <td class="gridTitle" align="center" width="5%">&nbsp;<b>New</b></td>
        <td class="gridTitle" align="center" width="10%">&nbsp;</td>
    </tr>
    <% for image in @images -%>
    <tr style="background:#F6F6F6" height="24">
        <td class="gridRow" align="left"><%= image.id%></td>
        <td class="gridRow" align="left"><%= image.name %></td>
        <td class="gridRow" align="left"><%= image.brief_descr %></td> 
        <td class="gridRow" align="left"><%= image_tag image.thumb_url, :size=>'100x100', :alt=>image.name %></td>	
        <td class="gridRow" align="center"><%= image.sequence %></td>	
        <td class="gridRow" align="center">
        <% if image.publish %>
            <font color="green"><b>YES</b></font>
        <% else %>
            <font color="red"><b>NO</b></font>
        <% end %></td>
        <td class="gridRow" align="center">
        <% if image.new %>
            <font color="green"><b>YES</b></font>
        <% else %>
            <font color="red"><b>NO</b></font>
        <% end %></td>
        <td class="gridRow" align="center"><%= link_to('edit', :action=>'edit_image',:id=>image)%>&nbsp;<%= link_to 'Destroy', {:action => 'destroy_image', :id=> image},  { :confirm => "Are you sure?", :post => true } %></td>
    </tr>		
    <% end -%>
</table>